//
//  YXManagerScrollView.h
//  MockProject
//
//  Created by FanYu on 23/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YXTableSectionHeaderView.h"

@protocol YXManagerScrollViewDelegate <NSObject>

- (void)sectionHeaderButtonTapped:(UIButton *)sender sectionHeaderType:(SectionHeaderType)type;
- (void)selectedCellAmount:(NSInteger)amount;
- (void)scrollViewDidScrollTo:(NSInteger)page;
- (void)hideBottomViewWhenScrolled;
- (void)showAlertWithTitle:(NSString *)title;

@end


@interface YXManagerScrollView : UIScrollView

@property (nonatomic, weak) id<YXManagerScrollViewDelegate> yxDelegate;
@property (nonatomic, strong) YXTableSectionHeaderView *sectionHeaderView;

- (void)commitDeleting;
- (void)commitSelectingAll;

- (void)updateSpeed:(NSString *)speed withUID:(NSString *)uid;
- (void)updateProgress:(NSProgress *)progress withUID:(NSString *)uid;
- (void)downloadFinishedForTask:(NSString *)uid;
- (void)downloadFailedForTask:(NSString *)uid;
- (void)changeTaskStatusToWaitingWithUID:(NSString *)uid;
- (void)changeTaskStatusToDownloadingWithUID:(NSString *)uid;
- (void)reachabilityChangedWithStatus:(NSString *)status;

@end
